import http from "@/utils/request";


//获取商品列表
export const getshoplist = () => {
    return http({
        url: "/mall-pms/app-api/v1/spu/pages",
        method: "get",
        headers: {
            Authorization: localStorage.getItem("token")
        }
    })
}

//新增
export const addshoplist = () => {
    return http({
        url: "/mall-pms/api/v1/spu",
        method: "post",
        headers: {
            Authorization: localStorage.getItem("token")
        }
    })
}
//删除
export const deleteshoplist = () => {
    return http({
        url: "/mall-pms/api/v1/spu/{ids}",
        method: "delete",
        headers: {
            Authorization: localStorage.getItem("token")
        }
    })
}
//修改
export const updateshoplist = () => {
    return http({
        url: "/mall-pms/api/v1/spu/{id}",
        method: "put",
        headers: {
            Authorization: localStorage.getItem("token")
        }
    })
}
//查找
export const searchshoplist = () => {
    return http({
        url: "/mall-pms/api/v1/spu/pages",
        method: "get",
        headers: {
            Authorization: localStorage.getItem("token")
        }
    })
}